<?php

namespace app\utils;

class TaskOrderEmun
{

    //任务订单状态 拒绝
    const TASK_ORDER_STATUS_REFUSE = -1;

    //任务订单状态 待审核
    const TASK_ORDER_STATUS_WAIT = 0;

    //任务订单状态 审核通过
    const TASK_ORDER_STATUS_PASS = 1;

    //任务订单状态 已撤销
    const TASK_ORDER_STATUS_CANCEL = 2;

    public static $taskOrderStatus = [

        -1=>"拒绝",
        0=>"待审核",
        1=>"审核通过",
        2=>"已撤销"
    ];

    public static function taskOrderStatusText($num=''){
        $arr = self::$taskOrderStatus;
        return $arr[$num]??$arr;
    }
}
